﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ZK.HardWareBLL;

namespace ZK.YHP_TransManage.Test
{
    public partial class _6E1XLED测试 : Form
    {

        Onbon6E1XCardNewBLL onbon6E1XCardBLL;
        public _6E1XLED测试()
        {
            InitializeComponent();
        }
        //send
        private void button1_Click(object sender, EventArgs e)
        {
            onbon6E1XCardBLL.sendMessage(textBox1.Text.Trim());
            Common.ShowBlackBox.WriteLine("1 send success");

        }

        private void _6K1LED测试_Load(object sender, EventArgs e)
        {

        }
        //set
        private void button2_Click(object sender, EventArgs e)
        {
            Common.HaredWareCommonM haredWareCommonM = new Common.HaredWareCommonM()
            {
                Ip = textBoxIp.Text.Trim(),
                Width = Convert.ToInt32(textBoxW.Text.Trim()),
                Height = Convert.ToInt32(textBoxH.Text.Trim())
            };
            Common.IConfig.GetSetLedQ = haredWareCommonM;
            Common.ShowBlackBox.WriteLine("1 set success");
        }
        //init
        private void button3_Click(object sender, EventArgs e)
        {

            Models.TerminalM terminalM = new Models.TerminalM();
            terminalM.ip = textBoxIp.Text.Trim();
            terminalM.height = Convert.ToInt32(textBoxH.Text.Trim());
            terminalM.width = Convert.ToInt32(textBoxW.Text.Trim());
            onbon6E1XCardBLL = new  HardWareBLL.Onbon6E1XCardNewBLL(terminalM);
            Common.ShowBlackBox.WriteLine("1 init Onbon6E1XCardNewBLL success");
        }
    }
}
